package com.zhongen.wflow.workflow.controller;

import com.zhongen.common.core.util.R;
import com.zhongen.common.security.annotation.Inner;
import com.zhongen.wflow.workflow.service.WxCommonService;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


//消息推送的模拟方法
@RestController
@RequestMapping(value = "/wx/xcx")
public class WxApiController {

    @Autowired
    private WxCommonService wxCommonService;

    @RequestMapping(value = "sendMsg")
    @ResponseBody
	@Inner(value = false)
    public R sendMsg(HttpServletRequest request){
        return R.ok();
    }

	@PostMapping("subMsg")
    public R subMsg(@RequestParam("exampleId") String exampleId){
        return R.ok(wxCommonService.subMsg(exampleId));
    }
}
